<div id="maincontent">
	<div id="content">
    
    
    
    
    <div class="box1">
      <h3><?php echo lico_lang('top100s', 'top100s.uptime.title'); ?></h3>
        <?php
        $class = "odd";
        include_once("libs/xml.class.php");
        $xml = file_get_contents("xml/toplist_uptime.xml");
        $domObj = new xmlToArrayParser($xml);
        $domArr = $domObj->array;       
        $generated = $domArr['statistics']['_']['generated'];
        ?>
        <div class="description"><?php echo lico_lang('top100s', 'top100s.uptime.description'); ?><br/><small>(Generated: <?php echo $generated; ?>)</small></div>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><strong>Nr.</strong></span></li>
            <li class="infotable-li owner"><span><strong>Owner</strong></span></li>
            <li class="infotable-li hostname"><span><strong>Hostname</strong></span></li>
            <li class="infotable-li uptime"><span><strong>Uptime</strong></span></li>
          </ul>
        </div>
      <?php
      for ($a=0; $a<100; $a++) {
        if ($class == "odd") $class = "even"; else $class = "odd";
        $line = $domArr['statistics']['line'][$a];
        ?>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><?php echo $line['place']; ?></span></li>
            <li class="infotable-li owner"><span><a href="/user/<?php echo $line['owner']; ?>.html"><?php echo $line['owner']; ?></a></span></li>
            <li class="infotable-li hostname"><span><a href="/machine/<?php echo $line['machine']; ?>.html"><?php echo $line['hostname']; ?></a></span></li>
            <li class="infotable-li uptime"><span><?php echo $line['uptime_formatted']; ?></span></li>
          </ul>
        </div>
        <?php
      }
      ?>
    </div>
    
    
    
    
    
    
    
    
    <div class="box2">
      <h3><?php echo lico_lang('top100s', 'top100s.diskspace.title'); ?></h3>
        <?php
        $class = "odd";
        include_once("libs/xml.class.php");
        $xml = file_get_contents("xml/toplist_diskspace.xml");
        $domObj = new xmlToArrayParser($xml);
        $domArr = $domObj->array;       
        $generated = $domArr['statistics']['_']['generated'];
        ?>
        <div class="description"><?php echo lico_lang('top100s', 'top100s.diskspace.description'); ?><br/><small>(Generated: <?php echo $generated; ?>)</small></div>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><strong>Nr.</strong></span></li>
            <li class="infotable-li owner"><span><strong>Owner</strong></span></li>
            <li class="infotable-li hostname"><span><strong>Hostname</strong></span></li>
            <li class="infotable-li diskspace"><span><strong>Diskspace</strong></span></li>
          </ul>
        </div>
      <?php
      for ($a=0; $a<100; $a++) {
        if ($class == "odd") $class = "even"; else $class = "odd";
        $line = $domArr['statistics']['line'][$a];
        ?>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><?php echo $line['place']; ?></span></li>
            <li class="infotable-li owner"><span><a href="/user/<?php echo $line['owner']; ?>.html"><?php echo $line['owner']; ?></a></span></li>
            <li class="infotable-li hostname"><span><a href="/machine/<?php echo $line['machine']; ?>.html"><?php echo $line['hostname']; ?></a></span></li>
            <li class="infotable-li diskspace"><span><?php echo $line['disk_formatted']; ?></span></li>
          </ul>
        </div>
        <?php
      }
      ?>
    </div>
    
    
    
    
    
    <div class="box3">
      <h3><?php echo lico_lang('top100s', 'top100s.memory.title'); ?></h3>
        <?php
        $class = "odd";
        include_once("libs/xml.class.php");
        $xml = file_get_contents("xml/toplist_memory.xml");
        $domObj = new xmlToArrayParser($xml);
        $domArr = $domObj->array;       
        $generated = $domArr['statistics']['_']['generated'];
        ?>
        <div class="description"><?php echo lico_lang('top100s', 'top100s.memory.description'); ?><br/><small>(Generated: <?php echo $generated; ?>)</small></div>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><strong>Nr.</strong></span></li>
            <li class="infotable-li owner"><span><strong>Owner</strong></span></li>
            <li class="infotable-li hostname"><span><strong>Hostname</strong></span></li>
            <li class="infotable-li memory"><span><strong>Memory</strong></span></li>
          </ul>
        </div>
      <?php
      for ($a=0; $a<100; $a++) {
        if ($class == "odd") $class = "even"; else $class = "odd";
        $line = $domArr['statistics']['line'][$a];
        ?>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><?php echo $line['place']; ?></span></li>
            <li class="infotable-li owner"><span><a href="/user/<?php echo $line['owner']; ?>.html"><?php echo $line['owner']; ?></a></span></li>
            <li class="infotable-li hostname"><span><a href="/machine/<?php echo $line['machine']; ?>.html"><?php echo $line['hostname']; ?></a></span></li>
            <li class="infotable-li memory"><span><?php echo $line['memory_formatted']; ?></span></li>
          </ul>
        </div>
        <?php
      }
      ?>
    </div>
    
    
    
    
  </div>
</div>
